package com.source.hotelbath.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by ZhouMeng on 2017/9/28.
 */

public class OrderGoodsList implements Parcelable {
    private List<PostBean> orderGoodsList;
    private String remark;
    private int hotelId;
    private String hotelName;


    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int getHotelId() {
        return hotelId;
    }

    public void setHotelId(int hotelId) {
        this.hotelId = hotelId;
    }

    public String getHotelName() {
        return hotelName;
    }

    public void setHotelName(String hotelName) {
        this.hotelName = hotelName;
    }

    public List<PostBean> getOrderGoodsList() {
        return orderGoodsList;
    }

    public void setOrderGoodsList(List<PostBean> orderGoodsList) {
        this.orderGoodsList = orderGoodsList;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeList(this.orderGoodsList);
        dest.writeString(this.remark);
        dest.writeInt(this.hotelId);
        dest.writeString(this.hotelName);
    }

    public OrderGoodsList() {
    }

    protected OrderGoodsList(Parcel in) {
        this.orderGoodsList = new ArrayList<PostBean>();
        in.readList(this.orderGoodsList, PostBean.class.getClassLoader());
        this.remark = in.readString();
        this.hotelId = in.readInt();
        this.hotelName = in.readString();
    }

    public static final Parcelable.Creator<OrderGoodsList> CREATOR = new Parcelable.Creator<OrderGoodsList>() {
        @Override
        public OrderGoodsList createFromParcel(Parcel source) {
            return new OrderGoodsList(source);
        }

        @Override
        public OrderGoodsList[] newArray(int size) {
            return new OrderGoodsList[size];
        }
    };
}
